# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=rubberband
pkgver=1.8.2
pkgrel=0
pkgdesc="library for audio time-stretching and pitch-shifting"
url="https://www.breakfastquay.com/rubberband/"
arch="all"
license="GPL-2.0-only"
makedepends="fftw-dev
	ladspa-dev
	libsamplerate-dev
	libsndfile-dev
	lv2-dev
	vamp-sdk-dev"
subpackages="$pkgname-static $pkgname-dev"
source="https://breakfastquay.com/files/releases/rubberband-$pkgver.tar.bz2
	patch-Makefile.patch"
options="!check" # No tests

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="da677f9a843711c44c52c0153faa62e587ac7c010569523ef4fef7ce941b9d292e566f46147700e496f6cfff4c9f22f9901dcc93f2d701fdb9de152ddac0c3a6  rubberband-1.8.2.tar.bz2
c35ee0d4b6b90cbd5826fe8fcd3af9485e036b0e138a7ec57ba3fdf39c48e98a07d4442f025d329bfc7541f08c06f517ec8c505e6330603cd3e52961baec79ba  patch-Makefile.patch"
